<!DOCTYPE html>
<body>
  <portal></portal>
  <script>
    function activate() {
      return document.querySelector("portal").activate().catch(err => true);
    }
  </script>
</body>
